package pack0821;

import java.util.Scanner;

public class ExceptionTest1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        try{
            System.out.println("我想让100除以：");
            int i = in.nextInt();
            int q = 100/i;
            System.out.println(q);
        }catch (Exception e){
            System.out.println("我又算错了！");
            System.out.println(e.getMessage());
            e.printStackTrace();
        }finally {
            System.out.println("我爱学数学");
        }
    }
}
